home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
scoobysnackmachine.swf
/
scripts
/
__Packages
/
DoorExit.as
< prev
next >
Wrap
Text File
|
2007-10-01
|
6KB
|
185 lines
var §\x01§ = 586;
while(true)
{
if(eval("\x01") == 586)
{
set("\x01",eval("\x01") - 96);
§§push(true);
}
else
{
if(eval("\x01") == 644)
{
set("\x01",eval("\x01") - 472);
break;
}
if(eval("\x01") == 172)
{
set("\x01",eval("\x01") + 717);
}
else
{
if(eval("\x01") == 454)
{
set("\x01",eval("\x01") + 350);
if(eval(§§constant(94))[§§constant(95)](§§pop()) < eval(§§constant(1))[§§constant(99)])
{
_loc1_[§§constant(2)] = 0;
}
§§pop()[§§pop()] = §§pop();
_loc2_[§§constant(83)] = function()
{
this[§§constant(2)] *= -1;
this[§§constant(84)](this[§§constant(2)]);
};
_loc2_[§§constant(80)] = function()
{
this[§§constant(3)] *= -1;
this[§§constant(81)](this[§§constant(3)]);
};
_loc1_[§§constant(100)] = 3;
_loc1_[§§constant(6)] = 50;
_loc1_[§§constant(101)] = 14;
_loc1_[§§constant(92)] = 12;
_loc1_[§§constant(87)] = 6;
_loc1_[§§constant(93)] = 2.5;
_loc1_[§§constant(98)] = 0.4;
_loc1_[§§constant(96)] = 0.2;
_loc1_[§§constant(99)] = 0.4;
§§constant(104)(eval(§§constant(0))[§§constant(1)][§§constant(14)],null,1);
§§push(_loc2_[§§constant(103)](§§constant(102),_loc2_[§§constant(41)],function()
{
}
));
break;
}
if(eval("\x01") == 490)
{
set("\x01",eval("\x01") - 36);
if(§§pop())
{
set("\x01",eval("\x01") + 350);
}
}
else if(eval("\x01") == 544)
{
set("\x01",eval("\x01") + 345);
}
else if(eval("\x01") == 171)
{
set("\x01",eval("\x01") + 473);
if(§§pop())
{
set("\x01",eval("\x01") - 472);
}
}
else if(eval("\x01") == 629)
{
set("\x01",eval("\x01") - 458);
§§push(true);
}
else if(eval("\x01") == 804)
{
set("\x01",eval("\x01") - 175);
}
else if(eval("\x01") == 879)
{
set("\x01",eval("\x01") - 250);
}
else
{
if(eval("\x01") == 431)
{
set("\x01",eval("\x01") + 100);
if(!_global.DoorExit)
{
_global.DoorExit extends BaseObject;
var _loc2_ = _global.DoorExit = function(__mcRef)
{
super(__mcRef);
this.nCheckDistance = DoorExit.EXIT_DOOR_CHECK_DISTANCE;
this.nObjectType = Level.OBJECT_TYPE_EXIT_DOOR;
this.aSwitches = new Array();
this.setState("Opened");
}.prototype;
_loc2_.doSwitchToggled = function()
{
var _loc3_ = true;
var _loc2_ = 0;
while(_loc2_ <= this.aSwitches.length - 1)
{
if(!this.aSwitches[_loc2_].Active)
{
_loc3_ = false;
}
_loc2_ = _loc2_ + 1;
}
if(_loc3_)
{
this.setState("Opened");
Library.Sound.SoundManager.doPlaySoundInCat(Main.SOUND_CATEGORY_SFX,"DoorOpen.wav");
}
else
{
this.setState("Closed");
}
};
_loc2_.doAddSwitch = function(__oSwitch)
{
this.aSwitches.push(__oSwitch);
this.doSwitchToggled();
};
_loc2_.doTakeSnack = function(__nSnackType)
{
this.nSnackType = __nSnackType;
this.setState("SnackEnter");
};
_loc2_.__get__Opened = function()
{
return this.__get__CurrentState() == "Opened";
};
_loc2_.doSnackEnter = function()
{
this.mcRef.mcState.mcSnack.gotoAndStop(this.nSnackType);
if(this.isStateComplete())
{
this.setState("Opened");
Level.__get__Instance().doSnackPassedDoor(this.nSnackType);
}
};
_loc2_.doLoadStateAction = function()
{
this.mcRef.mcState.mcSnack.gotoAndStop(this.nSnackType);
};
_global.DoorExit = function(__mcRef)
{
super(__mcRef);
this.nCheckDistance = DoorExit.EXIT_DOOR_CHECK_DISTANCE;
this.nObjectType = Level.OBJECT_TYPE_EXIT_DOOR;
this.aSwitches = new Array();
this.setState("Opened");
}.EXIT_DOOR_CHECK_DISTANCE = 50;
§§push(_loc2_.addProperty("Opened",_loc2_.__get__Opened,function()
{
}
));
§§push(ASSetPropFlags(_global.DoorExit.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") != 889)
{
if(eval("\x01") == 531)
{
set("\x01",eval("\x01") - 531);
break;
}
break;
}
set("\x01",eval("\x01") - 458);
}
}
}
}